projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa08de9
)
(encode_coding_iso2022): Initialize dummy arguments to
author
Kenichi Handa
<handa@m17n.org>
Tue, 23 Mar 1999 12:28:55 +0000
(12:28 +0000)
committer
Kenichi Handa
<handa@m17n.org>
Tue, 23 Mar 1999 12:28:55 +0000
(12:28 +0000)
ENCODE_ISO_CHARACTER for the previous change on this macro.
src/coding.c
patch
|
blob
|
history
diff --git
a/src/coding.c
b/src/coding.c
index 4f91bbb1543daf0f1807264bd9a5ee1e65b85520..97b806eabd2903ff5c5b0d4fed399e3d153f8845 100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-1902,6
+1902,7
@@
encode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
switch (emacs_code_class[c1])
{
case EMACS_ascii_code:
+ c2 = 0;
ENCODE_ISO_CHARACTER (CHARSET_ASCII, c1, /* dummy */ c2);
break;
@@
-1943,6
+1944,7
@@
encode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
case EMACS_leading_code_2:
ONE_MORE_BYTE (c2);
+ c3 = 0;
if (c2 < 0xA0)
{
/* invalid sequence */
@@
-1956,6
+1958,7
@@
encode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
case EMACS_leading_code_3:
TWO_MORE_BYTES (c2, c3);
+ c4 = 0;
if (c2 < 0xA0 || c3 < 0xA0)
{
/* invalid sequence */